<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.common.enums.IsPass"%>
<html>
<head>
<%
String str = languageDefine.getValue(request, "modifyLoginPassword_modifyLoginPassword");
String _TITLE_ = str + "- "+configureProvider.getProperty(SystemVariable.SITE_NAME);
CURRENT_SUB_CATEGORY="XGDLMA"; 
PC_TITLE_NAME="XGDLMA";
%>
<title><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%@include file="/WEB-INF/include/header.jsp"%>
<%@include file="/WEB-INF/include/authenticatedSession.jsp"%>
 <div class="autobox">
 <div class="now">
  <a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.Index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_home")%></a>&gt; <a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.security.index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_safeCenter")%></a> &gt; <%=languageDefine.getValue(request, "modifyLoginPassword_modifyLoginPassword")%>
 </div>
 <div class="assets_center clear po_re zin70">
 	<%@include file="/WEB-INF/include/aqzx/left.jsp"%>
  <div class="assets_content w900 right bg_w">
            <div class="safe_center clear" style="padding-left: 0px;">
                <h1 style="margin-top: 0px; margin-bottom: 15px; line-height: 15px;"><%=languageDefine.getValue(request, "modifyLoginPassword_modifyLoginPassword")%></h1>
            </div>
            <div class="pwtrade">
                <form id="form-pw" class="pw" action="<%=controller.getURI(request, UpdateLogin.class)%>" method="post" onsubmit="return onSubmit()" >
                    <dl>
                        <dt><%=languageDefine.getValue(request, "modifyLoginPassword_loginPassword")%>：</dt>
                        <dd>
                            <input type="password" id="oldpassword" name="oldpassword">
                        </dd>
                    </dl>
                    <dl>
                        <dt><%=languageDefine.getValue(request, "modifyLoginPassword_newLoginPassword")%>：</dt>
                        <dd>
                            <input type="password" id="newpassword" name="newpassword">
                        </dd>
                    </dl>
                    <dl>
                        <dt><%=languageDefine.getValue(request, "modifyLoginPassword_newPasswordAgain")%>：</dt>
                        <dd>
                            <input type="password" id="repassword" name="repassword">
                           <%
                           	String error = controller.getPrompt(request,response,PromptLevel.ERROR);
                           if(null!=error&&error.indexOf("err_")!=-1){
                              	error = languageDefine.getValue(request, error);
                            }
                           %>
                            <div class="com_warning" style="height: 20px;"><%StringHelper.filterHTML(out, error);%></div>
                        </dd>
                    </dl>
                    <dl>
                        <dt></dt>
                        <dd>
                            <input type="submit" value='<%=languageDefine.getValue(request, "modifyLoginPassword_save")%>' >
                        </dd>
                    </dl>
                </form>
            </div>
        </div>
 </div>
</div>
<%@include file="/WEB-INF/include/footer.jsp"%>
<%@include file="/WEB-INF/include/script.jsp"%>
<script type="text/javascript">
<%String info = controller.getPrompt(request,response,PromptLevel.INFO);if(!StringHelper.isEmpty(info)){%>
var url='<%=controller.getURI(request, Logout.class)%>';	
	layer.open({
  	title: '<%=languageDefine.getValue(request, "js_tip")%>',
  	content: '<%=languageDefine.getValue(request, "js_modifyPasswordSuccess")%>',
  	 yes: function(index, layero){
		layer.close(index);
		window.location = url;
		return false
  	},
  	cancel : function(index,laero){
  		layer.close(index);
		window.location = url;
		return false
  	} 
});  
<%}%>
	function onSubmit() {
		var oldpassword = $("#oldpassword").val();
		var newpassword = $("#newpassword").val();
		var repassword = $("#repassword").val();
		if (oldpassword == null || oldpassword == '') {
			layer.tips('<%=languageDefine.getValue(request, "js_enterLoginPassword")%>', '#oldpassword', {
				tips : 3
			});
			return false;
		}
		if (newpassword == null || newpassword == '') {
			layer.tips('<%=languageDefine.getValue(request, "js_enterNewLoginPassword")%>', '#newpassword', {
				tips : 3
			});
			return false;
		}
		if (newpassword.length<6 || newpassword.length >16) {
			layer.tips('<%=languageDefine.getValue(request, "js_passwordReg")%>', '#newpassword', {
				tips : 3
			});
			return false;
		}
		if (repassword == null || repassword == '') {
			layer.tips('<%=languageDefine.getValue(request, "js_newPasswordAgain")%>', '#repassword', {
				tips : 3
			});
			return false;
		}
		if(newpassword != repassword){
			layer.tips('<%=languageDefine.getValue(request, "js_passwordNotSame")%>', '#repassword', {tips:3});
			return false;
		}
		return true;
	}
</script>
</body>
</html>	
<!-- 	
14:53:05
技术部-蓝红 2017/7/7 14:53:05
function Update() {
		$.post("/User/uppassword.html", {
			oldpassword: $('#oldpassword').val(),
			newpassword: $('#newpassword').val(),
			repassword: $('#repassword').val()
		}, function (data) {
			if (data.status == 1) {
				//layer.msg(data.info, {icon: 1});
				layer.open({
				  	title: '提示',
				  	content: '修改密码成功,请重新登录！',
				  	yes: function(index, layero){
						layer.close(index);
						//window.location = "/User/password.html";
						window.location = "/Login/loginout.html";
						return false
				  	},
				  	cancel : function(index,laero){
				  		layer.close(index);
						//window.location = "/User/password.html";
						window.location = "/Login/loginout.html";
						return false
				  	}
				});  
			
				
			} else {
				layer.msg(data.info, {icon: 2});
				if (data.url) {
					window.location = data.url;
				}
			}
		}, "json");
	}
15:08:02
技术部-蓝红 2017/7/7 15:08:02
<div class="com_warning" style="height: 20px;">错误信息</div>

15:16:04
技术部-蓝红 2017/7/7 15:16:04
warning tk
<div class="okcoinPop" id="czok" style="">
    <div class="dialog_content" id="dialog_content_CnyAddress" style="margin-left: -200px; margin-top: 200px; left: 50%; top: 21px;">
    
        <div class="dialog_title" id="dialog_title_CnyAddress">
            
            <a href="javascript:closeAddress();" class="dialog_closed" title="关闭"></a>
        </div>
        <div style="text-align: left; padding:20px;font-size:14px;">付完款前请不要关闭此窗口完成付款后请根据你的付款点击下面按钮
        </div>
    </div>
</div>
 -->
	